package com.yurui.anno.event;

import org.springframework.context.ApplicationEvent;

public class Demo1Event
        extends ApplicationEvent
//        extends DemoEvent
{

    private String a;

//    public Demo1Event(Object source,String type) {
//        super(source,type);
//        this.a = "demo1";
//    }

    public Demo1Event(Object source,String type) {
        super(source);
        this.a = "demo1";
    }

    public String getA() {
        return a;
    }

    public void setA(String a) {
        this.a = a;
    }

    @Override
    public String toString() {
        return "Demo1Event{" +
                "a='" + a + '\'' +
//                ", source=" + source +
                '}';
    }
}
